#!/bin/sh
APP="jkserver"

echo "build by <jmdkina@gmail.com>"

export GOPATH=$GOPATH:${PWD}

if [ -f bin/${APP} ]; then
    rm bin/${APP}
fi

rm pkg/* -rf

cd src
echo "Building ${APP}"
go build .
go install .

if [ -f src ]; then
    mv ./src ../bin/${APP}
fi
cd ..
